<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:16:46 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git stash</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Branching_and_Merging">
                                Branching and Merging                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="63f3116d9459d862a86c679af27a2b02659161598e5fb33c068b55183b7b2072/90" data-source="git-stash" onmousemove="i18n(this)">git-stash</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="5850715bf5f7b53725a8ed29b5fe9762e96edb625da3a30912c6fae2d6250fe2/00" data-source="git-stash - Stash the changes in a dirty working directory away" onmousemove="i18n(this)">git-stash &mdash; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &gcy;&rcy;&yacy;&zcy;&ncy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-css">git stash list <span class="hljs-selector-attr">[&lt;log-options&gt;]</span>
git stash show <span class="hljs-selector-attr">[-u | --include-untracked | --only-untracked]</span> <span class="hljs-selector-attr">[&lt;diff-options&gt;]</span> <span class="hljs-selector-attr">[&lt;stash&gt;]</span>
git stash drop <span class="hljs-selector-attr">[-q | --quiet]</span> <span class="hljs-selector-attr">[&lt;stash&gt;]</span>
git stash pop <span class="hljs-selector-attr">[--index]</span> <span class="hljs-selector-attr">[-q | --quiet]</span> <span class="hljs-selector-attr">[&lt;stash&gt;]</span>
git stash apply <span class="hljs-selector-attr">[--index]</span> <span class="hljs-selector-attr">[-q | --quiet]</span> <span class="hljs-selector-attr">[&lt;stash&gt;]</span>
git stash branch &lt;branchname&gt; <span class="hljs-selector-attr">[&lt;stash&gt;]</span>
git stash <span class="hljs-selector-attr">[push [-p | --patch]</span> <span class="hljs-selector-attr">[-S | --staged]</span> <span class="hljs-selector-attr">[-k | --[no-]</span>keep-index] <span class="hljs-selector-attr">[-q | --quiet]</span>
             <span class="hljs-selector-attr">[-u | --include-untracked]</span> <span class="hljs-selector-attr">[-a | --all]</span> <span class="hljs-selector-attr">[(-m | --message) &lt;message&gt;]</span>
             <span class="hljs-selector-attr">[--pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]</span>]
             <span class="hljs-selector-attr">[--]</span> <span class="hljs-selector-attr">[&lt;pathspec&gt;&hellip;&ZeroWidthSpace;]</span>]
git stash save <span class="hljs-selector-attr">[-p | --patch]</span> <span class="hljs-selector-attr">[-S | --staged]</span> <span class="hljs-selector-attr">[-k | --[no-]</span>keep-index] <span class="hljs-selector-attr">[-q | --quiet]</span>
             <span class="hljs-selector-attr">[-u | --include-untracked]</span> <span class="hljs-selector-attr">[-a | --all]</span> <span class="hljs-selector-attr">[&lt;message&gt;]</span>
git stash <span class="hljs-attribute">clear</span>
git stash create <span class="hljs-selector-attr">[&lt;message&gt;]</span>
git stash store <span class="hljs-selector-attr">[(-m | --message) &lt;message&gt;]</span> <span class="hljs-selector-attr">[-q | --quiet]</span> &lt;commit&gt;</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="1fa6c5c2ea610faf2ea3100b2410d1ae5ef8573b3f4a4a7eca13505599b82c93/f2" data-source="Use &lt;code&gt;git stash&lt;/code&gt; when you want to record the current state of the working directory and the index, but want to go back to a clean working directory. The command saves your local modifications away and reverts the working directory to match the &lt;code&gt;HEAD&lt;/code&gt; commit." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>git stash</code> , &iecy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &ncy;&ocy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy;&scy;&yacy; &vcy; &chcy;&icy;&scy;&tcy;&ycy;&jcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy; &vcy;&acy;&shcy;&icy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&mcy;  <code>HEAD</code> .</span></p> <p><span data-i18n="2c3bb675019c9a33c539d7b10d4c43c8d667f37335241f97695c10b32a824da4/28" data-source="The modifications stashed away by this command can be listed with &lt;code&gt;git stash list&lt;/code&gt;, inspected with &lt;code&gt;git stash show&lt;/code&gt;, and restored (potentially on top of a different commit) with &lt;code&gt;git stash apply&lt;/code&gt;. Calling &lt;code&gt;git stash&lt;/code&gt; without any arguments is equivalent to &lt;code&gt;git stash push&lt;/code&gt;. A stash is by default listed as &amp;quot;WIP on &lt;code&gt;branchname&lt;/code&gt; &amp;hellip;&amp;ZeroWidthSpace;&amp;quot;, but you can give a more descriptive message on the command line when you create one." onmousemove="i18n(this)">&Icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &scy;&pcy;&rcy;&yacy;&tcy;&acy;&ncy;&ncy;&ycy;&iecy; &ecy;&tcy;&ocy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;, &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ycy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git stash list</code> , &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&iecy;&ncy;&ycy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git stash show</code>  &icy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy; (&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &pcy;&ocy;&vcy;&iecy;&rcy;&khcy; &dcy;&rcy;&ucy;&gcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;) &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git stash apply</code> . &Vcy;&ycy;&zcy;&ocy;&vcy;  <code>git stash</code>  &bcy;&iecy;&zcy; &kcy;&acy;&kcy;&icy;&khcy;-&lcy;&icy;&bcy;&ocy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;&iecy;&ncy;  <code>git stash push</code> . &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &tcy;&acy;&jcy;&ncy;&icy;&kcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &kcy;&acy;&kcy;  &quot;WIP on   <code>branchname</code>   &hellip;&ZeroWidthSpace;&quot; , &ncy;&ocy; &pcy;&rcy;&icy; &iecy;&gcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&icy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;.</span></p> <p><span data-i18n="f2771793d255c77c8814bbb72a0ef2453648137917acb485f76a6ccc2d7e4e8d/14" data-source="The latest stash you created is stored in &lt;code&gt;refs/stash&lt;/code&gt;; older stashes are found in the reflog of this reference and can be named using the usual reflog syntax (e.g. &lt;code&gt;stash@{0}&lt;/code&gt; is the most recently created stash, &lt;code&gt;stash@{1}&lt;/code&gt; is the one before it, &lt;code&gt;stash@{2.hours.ago}&lt;/code&gt; is also possible). Stashes may also be referenced by specifying just the stash index (e.g. the integer &lt;code&gt;n&lt;/code&gt; is equivalent to &lt;code&gt;stash@{n}&lt;/code&gt;)." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&jcy; &vcy;&acy;&mcy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&scy;&yacy; &vcy;  <code>refs/stash</code> ; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&tcy;&acy;&rcy;&ycy;&iecy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&icy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &vcy; &rcy;&iecy;&fcy;&lcy;&ocy;&gcy;&iecy; &ecy;&tcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &icy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&acy;&zcy;&vcy;&acy;&ncy;&ycy; &scy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;&mcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&gcy;&ocy; &scy;&icy;&ncy;&tcy;&acy;&kcy;&scy;&icy;&scy;&acy; &rcy;&iecy;&fcy;&lcy;&ocy;&gcy;&acy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>stash@{0}</code>  &mdash; &scy;&acy;&mcy;&ycy;&jcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&jcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;,  <code>stash@{1}</code>  &mdash; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&icy;&jcy;,  <code>stash@{2.hours.ago}</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&iecy;&ncy;). &Ncy;&acy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&icy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &scy;&scy;&ycy;&lcy;&acy;&tcy;&softcy;&scy;&yacy;, &ucy;&kcy;&acy;&zcy;&acy;&vcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &tscy;&iecy;&lcy;&ocy;&iecy; &chcy;&icy;&scy;&lcy;&ocy;  <code>n</code>  &ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;&ncy;&ocy;  <code>stash@{n}</code>  ).</span></p> </div> <h2 class="text-body-emphasis"  id="_commands"><span data-i18n="b269dc4e81a528a4d42e9e74101923514a626f55f8dd76b1461e0690e72d041a/f5" data-source="Commands" onmousemove="i18n(this)">Commands</span></h2> <div> <div> <dl> <dt id="Documentation/git-stash.txt-push-p--patch-S--staged-k--no-keep-index-u--include-untracked-a--all-q--quiet-m--messageltmessagegt--pathspec-from-fileltfilegt--pathspec-file-nul--ltpathspecgt82308203"><span data-i18n="3d0a1fd1b81118214d9c05bb7e8ea69590935e7b7cd478d1b12b3be396a07e52/41" data-source="push [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [(-m|--message) &amp;lt;message&amp;gt;] [--pathspec-from-file=&amp;lt;file&amp;gt; [--pathspec-file-nul]] [--] [&amp;lt;pathspec&amp;gt;&amp;hellip;&amp;ZeroWidthSpace;]" onmousemove="i18n(this)">push [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [ -q|--quiet] [(-m|--message) &lt;&scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;&gt;] [--pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]] [--] [&lt;pathspec&gt; &hellip;&ZeroWidthSpace;]</span></dt> <dd> <p><span data-i18n="92bde7b1fd91ac0aa2ecf6ac814886b4b0d6f5194549d2f6a83370ffd35ae39a/2c" data-source="Save your local modifications to a new &lt;code&gt;stash entry&lt;/code&gt; and roll them back to HEAD (in the working tree and in the index). The &amp;lt;message&amp;gt; part is optional and gives the description along with the stashed state." onmousemove="i18n(this)">&Scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&iecy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &ncy;&ocy;&vcy;&ycy;&jcy;  <code>stash entry</code>  &icy; &ocy;&tcy;&kcy;&acy;&tcy;&icy;&tcy;&iecy; &icy;&khcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &vcy; HEAD (&vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &icy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;). &CHcy;&acy;&scy;&tcy;&softcy; &lt;message&gt; &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &icy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy; &vcy;&mcy;&iecy;&scy;&tcy;&iecy; &scy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&ncy;&ncy;&ycy;&mcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;&mcy;.</span></p> <p><span data-i18n="25a95ba650f0dd823bb3e9af75f70ae2ffdbc2adf50f7da0199676be4b723cc4/96" data-source="For quickly making a snapshot, you can omit &amp;quot;push&amp;quot;. In this mode, non-option arguments are not allowed to prevent a misspelled subcommand from making an unwanted stash entry. The two exceptions to this are &lt;code&gt;stash -p&lt;/code&gt; which acts as alias for &lt;code&gt;stash push -p&lt;/code&gt; and pathspec elements, which are allowed after a double hyphen &lt;code&gt;--&lt;/code&gt; for disambiguation." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &bcy;&ycy;&scy;&tcy;&rcy;&ocy;&gcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &scy;&ncy;&icy;&mcy;&kcy;&acy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  &quot;push&quot; . &Vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;, &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&shchcy;&icy;&iecy;&scy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&mcy;&icy;, &ncy;&iecy; &dcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&yucy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy; &ncy;&iecy;&zhcy;&iecy;&lcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &vcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&iecy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy; &scy; &ocy;&shcy;&icy;&bcy;&kcy;&ocy;&jcy;. &Dcy;&vcy;&ucy;&mcy;&yacy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy;&mcy;&icy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy;  <code>stash -p</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &kcy;&acy;&kcy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&ncy;&icy;&mcy; &dcy;&lcy;&yacy;  <code>stash push -p</code> , &icy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; pathspec, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&ycy; &pcy;&ocy;&scy;&lcy;&iecy; &dcy;&vcy;&ocy;&jcy;&ncy;&ocy;&gcy;&ocy; &dcy;&iecy;&fcy;&icy;&scy;&acy;  <code>--</code>  &dcy;&lcy;&yacy; &ucy;&scy;&tcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy;&ocy;&dcy;&ncy;&ocy;&zcy;&ncy;&acy;&chcy;&ncy;&ocy;&scy;&tcy;&icy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-save-p--patch-S--staged-k--no-keep-index-u--include-untracked-a--all-q--quietltmessagegt"><span data-i18n="696d51084f34046ca34ff03fe1ea1390a95c14344b7e2f635d6fb5d55a8dc606/56" data-source="save [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [&amp;lt;message&amp;gt;]" onmousemove="i18n(this)">save [-p|--patch] [-S|--staged] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [ -q|--&tcy;&icy;&khcy;&ocy;] [&lt;&scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;&gt;]</span></dt> <dd> <p><span data-i18n="990e8c96004758c42473b2f84eefade72eb4c9982386df49de9d5791ce9951fb/54" data-source="This option is deprecated in favour of &lt;code&gt;git stash push&lt;/code&gt;. It differs from &amp;quot;stash push&amp;quot; in that it cannot take pathspec. Instead, all non-option arguments are concatenated to form the stash message." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&lcy;&acy; &vcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ucy;  <code>git stash push</code> . &Ocy;&ncy; &ocy;&tcy;&lcy;&icy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&tcy;  &quot;stash push&quot;  &tcy;&iecy;&mcy;, &chcy;&tcy;&ocy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&tcy;&softcy; pathspec. &Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &vcy;&scy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;, &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&shchcy;&icy;&iecy;&scy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&mcy;&icy;, &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &fcy;&ocy;&rcy;&mcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &tcy;&acy;&jcy;&ncy;&ocy;&gcy;&ocy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-listltlog-optionsgt"><span data-i18n="6d3543f8424f315f4c50f96dc75bd146a4e4ae8df2da77a2d8b825be0256a1dd/29" data-source="list [&amp;lt;log-options&amp;gt;]" onmousemove="i18n(this)">list [&lt;log-options&gt;]</span></dt> <dd> <p><span data-i18n="37e0a529a9642dcd567ff33ac6839e8b77616f50dc82b76a076578fc4e5aff89/6b" data-source="List the stash entries that you currently have. Each &lt;code&gt;stash entry&lt;/code&gt; is listed with its name (e.g. &lt;code&gt;stash@{0}&lt;/code&gt; is the latest entry, &lt;code&gt;stash@{1}&lt;/code&gt; is the one before, etc.), the name of the branch that was current when the entry was made, and a short description of the commit the entry was based on." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&chcy;&icy;&scy;&lcy;&icy;&tcy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ucy; &vcy;&acy;&scy; &iecy;&scy;&tcy;&softcy; &ncy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;. &Kcy;&acy;&zhcy;&dcy;&ycy;&jcy;  <code>stash entry</code>  &ucy;&kcy;&acy;&zcy;&acy;&ncy; &scy; &iecy;&gcy;&ocy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>stash@{0}</code>  &mdash; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&yacy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&softcy;,  <code>stash@{1}</code>  &mdash; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&acy;&yacy; &icy; &tcy;.&nbsp;&dcy;.), &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &vcy;&iecy;&tcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &bcy;&ycy;&lcy;&acy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &ncy;&acy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&icy;, &icy; &kcy;&rcy;&acy;&tcy;&kcy;&icy;&mcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &bcy;&ycy;&lcy;&acy; &scy;&dcy;&iecy;&lcy;&acy;&ncy;&acy; &zcy;&acy;&pcy;&icy;&scy;&softcy;. &ncy;&acy;.</span></p> <div> <div> <pre class="hljs language-graphql">stash@<span class="hljs-punctuation">{</span><span class="hljs-number">0</span><span class="hljs-punctuation">}</span><span class="hljs-punctuation">:</span> WIP <span class="hljs-keyword">on</span> <span class="hljs-symbol">submit</span><span class="hljs-punctuation">:</span> <span class="hljs-number">6</span>ebd0e2<span class="hljs-punctuation">...</span> Update git-stash documentation
stash@<span class="hljs-punctuation">{</span><span class="hljs-number">1</span><span class="hljs-punctuation">}</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">On</span> <span class="hljs-symbol">master</span><span class="hljs-punctuation">:</span> <span class="hljs-number">9</span>cc0589<span class="hljs-punctuation">...</span> Add git-stash</pre> </div> </div> <p><span data-i18n="4b32bce77fdbf62082014eb5e583359eafffd9c76652ac58c24df2fb4575a4b7/d8" data-source="The command takes options applicable to the &lt;code&gt;git log&lt;/code&gt; command to control what is shown and how. See &lt;a href=&quot;git-log&quot;&gt;git-log[1]&lt;/a&gt;." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy;, &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&mcy;&ycy;&iecy; &kcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  <code>git log</code> , &dcy;&lcy;&yacy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &tcy;&iecy;&mcy;, &chcy;&tcy;&ocy; &icy; &kcy;&acy;&kcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy;. &Scy;&mcy;.  <a href="git-log.html">git-log[1]</a> .</span></p> </dd> <dt id="Documentation/git-stash.txt-show-u--include-untracked--only-untrackedltdiff-optionsgtltstashgt"><span data-i18n="46af9193ac0e586d44ba104bc231eb02f4d1b817e40a8c1feafa7c1b9f53ddf8/95" data-source="show [-u|--include-untracked|--only-untracked] [&amp;lt;diff-options&amp;gt;] [&amp;lt;stash&amp;gt;]" onmousemove="i18n(this)">show [-u|--include-untracked|--only-untracked] [&lt;diff-options&gt;] [&lt;stash&gt;]</span></dt> <dd> <p><span data-i18n="b988c371d3fb8086afea464557b2d6d6e43ef9115b6c04604a0635cc38d6a423/02" data-source="Show the changes recorded in the stash entry as a diff between the stashed contents and the commit back when the stash entry was first created. By default, the command shows the diffstat, but it will accept any format known to &lt;code&gt;git diff&lt;/code&gt; (e.g., &lt;code&gt;git stash show -p stash@{1}&lt;/code&gt; to view the second most recent entry in patch form). If no &lt;code&gt;&amp;lt;diff-option&amp;gt;&lt;/code&gt; is provided, the default behavior will be given by the &lt;code&gt;stash.showStat&lt;/code&gt;, and &lt;code&gt;stash.showPatch&lt;/code&gt; config variables. You can also use &lt;code&gt;stash.showIncludeUntracked&lt;/code&gt; to set whether &lt;code&gt;--include-untracked&lt;/code&gt; is enabled by default." onmousemove="i18n(this)">&Pcy;&ocy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;, &kcy;&acy;&kcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ucy; &mcy;&iecy;&zhcy;&dcy;&ucy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&ncy;&ncy;&ycy;&mcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ycy;&mcy; &icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&iecy;&jcy;, &kcy;&ocy;&gcy;&dcy;&acy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy; &bcy;&ycy;&lcy;&acy; &vcy;&pcy;&iecy;&rcy;&vcy;&ycy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&acy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; diffstat, &ncy;&ocy; &ocy;&ncy;&acy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &lcy;&yucy;&bcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;, &icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ycy;&jcy;  <code>git diff</code>  (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>git stash show -p stash@{1}</code>  &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&acy; &vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &vcy; &fcy;&ocy;&rcy;&mcy;&iecy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;). &IEcy;&scy;&lcy;&icy;  <code>&lt;diff-option&gt;</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;, &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&dcy;&acy;&ncy;&ocy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>stash.showStat</code>  &icy;  <code>stash.showPatch</code> . &Vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>stash.showIncludeUntracked</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy;, &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy; &lcy;&icy;  <code>--include-untracked</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-pop--index-q--quietltstashgt"><span data-i18n="0d058a00019d1188e83e96baac759744a5154986061cd57ad9020d280fb6b906/b4" data-source="pop [--index] [-q|--quiet] [&amp;lt;stash&amp;gt;]" onmousemove="i18n(this)">pop [--index] [-q|--quiet] [&lt;&tcy;&acy;&jcy;&ncy;&icy;&kcy;&gt;]</span></dt> <dd> <p><span data-i18n="91db5406ff8bf31826f5f587228f1d8535b34f959b4172e945159b040b4f4ed7/74" data-source="Remove a single stashed state from the stash list and apply it on top of the current working tree state, i.e., do the inverse operation of &lt;code&gt;git stash push&lt;/code&gt;. The working directory must match the index." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &ocy;&dcy;&ncy;&ocy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &icy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&iecy; &iecy;&gcy;&ocy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &tcy;. &iecy;. &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yucy;, &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ucy;&yucy;  <code>git stash push</code> . &Rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;.</span></p> <p><span data-i18n="28b40b70d0a90499ee32e44f93352b604e8c65fa7a113db98cd1fd1c6c8ba477/2b" data-source="Applying the state can fail with conflicts; in this case, it is not removed from the stash list. You need to resolve the conflicts by hand and call &lt;code&gt;git stash drop&lt;/code&gt; manually afterwards." onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&tcy;&iecy;&rcy;&pcy;&iecy;&tcy;&softcy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ucy; &icy;&zcy;-&zcy;&acy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ocy;&ncy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;. &Vcy;&acy;&mcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy; &pcy;&ocy;&zcy;&vcy;&ocy;&ncy;&icy;&tcy;&softcy; &ncy;&acy;  <code>git stash drop</code> .</span></p> </dd> <dt id="Documentation/git-stash.txt-apply--index-q--quietltstashgt"><span data-i18n="425c55507042d302474e29dc27a5df9da902633ef260b13069983b13480336ae/ca" data-source="apply [--index] [-q|--quiet] [&amp;lt;stash&amp;gt;]" onmousemove="i18n(this)">&pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; [--index] [-q|--quiet] [&lt;stash&gt;]</span></dt> <dd> <p><span data-i18n="830f164b6cbc16fa53bcfb2be6ba43bd06ba1ad2731ea2d0fecf103931f37156/9e" data-source="Like &lt;code&gt;pop&lt;/code&gt;, but do not remove the state from the stash list. Unlike &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;&amp;lt;stash&amp;gt;&lt;/code&gt; may be any commit that looks like a commit created by &lt;code&gt;stash push&lt;/code&gt; or &lt;code&gt;stash create&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&acy;&kcy;  <code>pop</code> , &ncy;&ocy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&yacy;&jcy;&tcy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;. &Vcy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&iecy; &ocy;&tcy;  <code>pop</code> ,  <code>&lt;stash&gt;</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &lcy;&yucy;&bcy;&ycy;&mcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&mcy;, &pcy;&ocy;&khcy;&ocy;&zhcy;&icy;&mcy; &ncy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;, &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&jcy;  <code>stash push</code>  &icy;&lcy;&icy;  <code>stash create</code> .</span></p> </dd> <dt id="Documentation/git-stash.txt-branchltbranchnamegtltstashgt"><span data-i18n="bde5f5dab1461ef4800e306e0889c042c8292f68e75fc5de0e473449aecf9684/f9" data-source="branch &amp;lt;branchname&amp;gt; [&amp;lt;stash&amp;gt;]" onmousemove="i18n(this)">&vcy;&iecy;&tcy;&kcy;&acy; &lt;&icy;&mcy;&yacy; &vcy;&iecy;&tcy;&kcy;&icy;&gt; [&lt;&tcy;&acy;&jcy;&ncy;&icy;&kcy;&gt;]</span></dt> <dd> <p><span data-i18n="c64cf56c204c89815da0cfaa7c552c74114d3f20d0f88f0e481b4e79c7ccc5e5/ec" data-source="Creates and checks out a new branch named &lt;code&gt;&amp;lt;branchname&amp;gt;&lt;/code&gt; starting from the commit at which the &lt;code&gt;&amp;lt;stash&amp;gt;&lt;/code&gt; was originally created, applies the changes recorded in &lt;code&gt;&amp;lt;stash&amp;gt;&lt;/code&gt; to the new working tree and index. If that succeeds, and &lt;code&gt;&amp;lt;stash&amp;gt;&lt;/code&gt; is a reference of the form &lt;code&gt;stash@{&amp;lt;revision&amp;gt;}&lt;/code&gt;, it then drops the &lt;code&gt;&amp;lt;stash&amp;gt;&lt;/code&gt;." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &icy; &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&acy;&iecy;&tcy; &ncy;&ocy;&vcy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  <code>&lt;branchname&gt;</code> , &ncy;&acy;&chcy;&icy;&ncy;&acy;&yacy; &scy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &icy;&zcy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy; &bcy;&ycy;&lcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;  <code>&lt;stash&gt;</code> , &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy;  <code>&lt;stash&gt;</code> , &kcy; &ncy;&ocy;&vcy;&ocy;&mcy;&ucy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy;&ucy; &dcy;&iecy;&rcy;&iecy;&vcy;&ucy; &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;. &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &ucy;&dcy;&acy;&lcy;&ocy;&scy;&softcy; &icy;  <code>&lt;stash&gt;</code>  &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&ocy;&jcy; &vcy; &ZeroWidthSpace;&ZeroWidthSpace;&fcy;&ocy;&rcy;&mcy;&iecy;  <code>stash@{&lt;revision&gt;}</code> , &tcy;&ocy;  <code>&lt;stash&gt;</code>  &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="eacf60e5e356ca801884ec0477982a56caf523ec898cbf3356ef31d1e5f6587e/a1" data-source="This is useful if the branch on which you ran &lt;code&gt;git stash push&lt;/code&gt; has changed enough that &lt;code&gt;git stash apply&lt;/code&gt; fails due to conflicts. Since the stash entry is applied on top of the commit that was HEAD at the time &lt;code&gt;git stash&lt;/code&gt; was run, it restores the originally stashed state with no conflicts." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy;, &iecy;&scy;&lcy;&icy; &vcy;&iecy;&tcy;&kcy;&acy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &vcy;&ycy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&lcy;&icy;  <code>git stash push</code> , &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&acy;&scy;&softcy; &ncy;&acy;&scy;&tcy;&ocy;&lcy;&softcy;&kcy;&ocy;, &chcy;&tcy;&ocy;  <code>git stash apply</code>  &vcy;&ycy;&khcy;&ocy;&dcy;&icy;&tcy; &icy;&zcy; &scy;&tcy;&rcy;&ocy;&yacy; &icy;&zcy;-&zcy;&acy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;. &Pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &vcy; &kcy;&ecy;&shcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &bcy;&ycy;&lcy; HEAD &ncy;&acy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;  <code>git stash</code> , &ocy;&ncy;&acy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&iecy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &bcy;&iecy;&zcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-clear"><span data-i18n="913a4cb91be20332f3559f8070255d7ac3e6228bb423f4441551d3f783e7d4f4/56" data-source="clear" onmousemove="i18n(this)">clear</span></dt> <dd> <p><span data-i18n="acab23a00bba47ebf4cd14acc94280d9359caa56cfdd88356eef152ce2544b93/33" data-source="Remove all the stash entries. Note that those entries will then be subject to pruning, and may be impossible to recover (see &lt;code&gt;Examples&lt;/code&gt; below for a possible strategy)." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &vcy;&scy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &ecy;&tcy;&icy; &zcy;&acy;&pcy;&icy;&scy;&icy; &zcy;&acy;&tcy;&iecy;&mcy; &bcy;&ucy;&dcy;&ucy;&tcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy;, &icy; &icy;&khcy; &bcy;&ucy;&dcy;&iecy;&tcy; &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; (&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ucy;&yucy; &scy;&tcy;&rcy;&acy;&tcy;&iecy;&gcy;&icy;&yucy; &scy;&mcy;. &vcy;  <code>Examples</code>  &ncy;&icy;&zhcy;&iecy;).</span></p> </dd> <dt id="Documentation/git-stash.txt-drop-q--quietltstashgt"><span data-i18n="a48c18f87607e7a3edc37f10852fc5803e6ccfcdb68dfd04ee3e68481bc9b54a/ba" data-source="drop [-q|--quiet] [&amp;lt;stash&amp;gt;]" onmousemove="i18n(this)">drop [-q|--quiet] [&lt;&tcy;&acy;&jcy;&ncy;&icy;&kcy;&gt;]</span></dt> <dd> <p><span data-i18n="663bcc59d8a02e494aaacc18ddaf2e9a90392e09510770b12b114d5120431b15/04" data-source="Remove a single stash entry from the list of stash entries." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &ocy;&dcy;&ncy;&ucy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-create"><span data-i18n="fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799/2b" data-source="create" onmousemove="i18n(this)">create</span></dt> <dd> <p><span data-i18n="385ea3865c797ad692130d4ca6960c1e467c46adf7ee6cd9043a958fb455e6da/30" data-source="Create a stash entry (which is a regular commit object) and return its object name, without storing it anywhere in the ref namespace. This is intended to be useful for scripts. It is probably not the command you want to use; see &amp;quot;push&amp;quot; above." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &vcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&iecy; (&kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;) &icy; &vcy;&iecy;&rcy;&ncy;&icy;&tcy;&iecy; &icy;&mcy;&yacy; &iecy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &ncy;&iecy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yacy; &iecy;&gcy;&ocy; &gcy;&dcy;&iecy;-&lcy;&icy;&bcy;&ocy; &vcy; &pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&scy;&tcy;&vcy;&iecy; &icy;&mcy;&iecy;&ncy; ref. &Ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ocy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy;&khcy;. &Vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &ecy;&tcy;&ocy; &ncy;&iecy; &tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;; &scy;&mcy;.  &quot;push&quot;  &vcy;&ycy;&shcy;&iecy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-store"><span data-i18n="824d80d71985f082a26997a8db88b5d1dd45b777d73585d03d236303e21bde97/f4" data-source="store" onmousemove="i18n(this)">store</span></dt> <dd> <p><span data-i18n="81854d355387b1e2f43a5071bd68eb3696bb7ea0c00249aa47ea9c0e11512a7f/d3" data-source="Store a given stash created via &lt;code&gt;git stash create&lt;/code&gt; (which is a dangling merge commit) in the stash ref, updating the stash reflog. This is intended to be useful for scripts. It is probably not the command you want to use; see &amp;quot;push&amp;quot; above." onmousemove="i18n(this)">&Scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&iecy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&jcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;, &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&jcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git stash create</code>  (&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &vcy;&icy;&scy;&yacy;&chcy;&ucy;&yucy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;), &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy; &ncy;&acy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;, &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&vcy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&acy;. &Ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ocy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy;&khcy;. &Vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &ecy;&tcy;&ocy; &ncy;&iecy; &tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;; &scy;&mcy;.  &quot;push&quot;  &vcy;&ycy;&shcy;&iecy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-stash.txt--a"><span data-i18n="c274891790345c56cef3b53c026bdc48150948fa60c56306073d6fea7766ad6a/1a" data-source="-a" onmousemove="i18n(this)">-a</span></dt> <dt id="Documentation/git-stash.txt---all"><span data-i18n="7dbf56c38208e33a9193b210245465f7729af0d59b9df556e7f1f7138a6d6e93/a1" data-source="--all" onmousemove="i18n(this)">--all</span></dt> <dd> <p><span data-i18n="84f8650c96737b4e2919760fb7134e58cedb5a2a04faa49117b475fdbaaa2f17/ba" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;save&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>push</code>  &icy;  <code>save</code> .</span></p> <p><span data-i18n="5b37f9d3a88a8e17f5eed8f77465691d264068c798ed0551493c0dc8f2da61eb/c5" data-source="All ignored and untracked files are also stashed and then cleaned up with &lt;code&gt;git clean&lt;/code&gt;." onmousemove="i18n(this)">&Vcy;&scy;&iecy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &icy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&chcy;&icy;&shchcy;&acy;&yucy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git clean</code> .</span></p> </dd> <dt id="Documentation/git-stash.txt--u"><span data-i18n="99f14531f2599afdb9ace38c18c10740fd29ca1bdcdb7d0460fd799001d567bd/0f" data-source="-u" onmousemove="i18n(this)">-u</span></dt> <dt id="Documentation/git-stash.txt---include-untracked"><span data-i18n="7e68de35572e5bdcc2abe31ed6d1c5209c4d86c604695af6e90ccde362a1cb99/6f" data-source="--include-untracked" onmousemove="i18n(this)">--include-untracked</span></dt> <dt id="Documentation/git-stash.txt---no-include-untracked"><span data-i18n="4bda6be4e85f84d700059c64c150b0a57ea85c139151b356165c6b71f71c69dc/4c" data-source="--no-include-untracked" onmousemove="i18n(this)">--no-include-untracked</span></dt> <dd> <p><span data-i18n="f94c9c2213b05e9e100bdff5a6885d6400edfb4ac80fa7e935a999013c41f1fd/47" data-source="When used with the &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;save&lt;/code&gt; commands, all untracked files are also stashed and then cleaned up with &lt;code&gt;git clean&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &scy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;  <code>push</code>  &icy;  <code>save</code>  &vcy;&scy;&iecy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&chcy;&icy;&shchcy;&acy;&yucy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git clean</code> .</span></p> <p><span data-i18n="eb8a15ae9d4497eafa2335a6999c93040818924abe93d2e8e9f2b9a856caae77/0d" data-source="When used with the &lt;code&gt;show&lt;/code&gt; command, show the untracked files in the stash entry as part of the diff." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &scy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>show</code>  &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&tcy;&softcy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&acy; &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy;.</span></p> </dd> <dt id="Documentation/git-stash.txt---only-untracked"><span data-i18n="50062cee8faf9960d4e6e6adbe6e9264f323b01f1d9612c48af9c2910568be10/b2" data-source="--only-untracked" onmousemove="i18n(this)">--only-untracked</span></dt> <dd> <p><span data-i18n="d9bfb8f31bc37d1f580398301dad4c85c735d4e1ead2a36877f4602833ff8577/7b" data-source="This option is only valid for the &lt;code&gt;show&lt;/code&gt; command." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>show</code> .</span></p> <p><span data-i18n="5bafda946da2d4fa07deb724f9d24fd5cea9215d6c319929d257d1dd45dae7ce/51" data-source="Show only the untracked files in the stash entry as part of the diff." onmousemove="i18n(this)">&Pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy; &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy;.</span></p> </dd> <dt id="Documentation/git-stash.txt---index"><span data-i18n="68a8ea7938f4e809457e7fa29310369200d3e546af36e7907fa385c0e74e831d/9c" data-source="--index" onmousemove="i18n(this)">--index</span></dt> <dd> <p><span data-i18n="052ed6ab9d8fdc1109a0eaf169285023b87aa60ce27df739babac86dd39ed598/c7" data-source="This option is only valid for &lt;code&gt;pop&lt;/code&gt; and &lt;code&gt;apply&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>pop</code>  &icy;  <code>apply</code> .</span></p> <p><span data-i18n="7663f93d5c1f3acb2c6d8f495d5dd7ef4402b2579f1bcfe35c3d17aae2fc70bb/77" data-source="Tries to reinstate not only the working tree&amp;rsquo;s changes, but also the index&amp;rsquo;s ones. However, this can fail, when you have conflicts (which are stored in the index, where you therefore can no longer apply the changes as they were originally)." onmousemove="i18n(this)">&Pcy;&ycy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &ncy;&ocy; &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&tcy;&iecy;&rcy;&pcy;&iecy;&tcy;&softcy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ucy;, &iecy;&scy;&lcy;&icy; &ucy; &vcy;&acy;&scy; &iecy;&scy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; (&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &khcy;&rcy;&acy;&ncy;&yacy;&tcy;&scy;&yacy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;, &icy; &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &tcy;&ocy;&mcy; &vcy;&icy;&dcy;&iecy;, &vcy; &kcy;&acy;&kcy;&ocy;&mcy; &ocy;&ncy;&icy; &bcy;&ycy;&lcy;&icy; &icy;&zcy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;).</span></p> </dd> <dt id="Documentation/git-stash.txt--k"><span data-i18n="2491456786e2f980156bb6d6932d5f25deea5b8b234c1a89766ff9280ab1f280/02" data-source="-k" onmousemove="i18n(this)">-k</span></dt> <dt id="Documentation/git-stash.txt---keep-index"><span data-i18n="55d55df83b7390ed58f052f6b608441118440cb0ce24b7cae966bd76b65b9510/46" data-source="--keep-index" onmousemove="i18n(this)">--keep-index</span></dt> <dt id="Documentation/git-stash.txt---no-keep-index"><span data-i18n="3dc23f0654dfabf2f8aca9a405725e956a2ee73eb81a37447afdac6fdaf9a3c9/58" data-source="--no-keep-index" onmousemove="i18n(this)">--no-keep-index</span></dt> <dd> <p><span data-i18n="84f8650c96737b4e2919760fb7134e58cedb5a2a04faa49117b475fdbaaa2f17/ba" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;save&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>push</code>  &icy;  <code>save</code> .</span></p> <p><span data-i18n="3d4a0d7fcf435f4405d1322c387be5ae03455a9a1ef8f6f6d8c752faa6eeac38/57" data-source="All changes already added to the index are left intact." onmousemove="i18n(this)">&Vcy;&scy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &ucy;&zhcy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;, &ocy;&scy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy;&tcy;&rcy;&ocy;&ncy;&ucy;&tcy;&ycy;&mcy;&icy;.</span></p> </dd> <dt id="Documentation/git-stash.txt--p"><span data-i18n="567479c447e472328522a1d759aabb9b579e4522a6da547c983d29e94c1604c2/a3" data-source="-p" onmousemove="i18n(this)">-p</span></dt> <dt id="Documentation/git-stash.txt---patch"><span data-i18n="7bbfb9636bd1ed3b4d0a3db1cafae5a073c8b069ffda4dcb6cbe8b2a921024c5/4f" data-source="--patch" onmousemove="i18n(this)">--patch</span></dt> <dd> <p><span data-i18n="84f8650c96737b4e2919760fb7134e58cedb5a2a04faa49117b475fdbaaa2f17/ba" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;save&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>push</code>  &icy;  <code>save</code> .</span></p> <p><span data-i18n="86ff2100b1740e212211ae62ec74a0a63e236576561b24b75437c32e52093f45/68" data-source="Interactively select hunks from the diff between HEAD and the working tree to be stashed. The stash entry is constructed such that its index state is the same as the index state of your repository, and its worktree contains only the changes you selected interactively. The selected changes are then rolled back from your worktree. See the &amp;ldquo;Interactive Mode&amp;rdquo; section of &lt;a href=&quot;git-add&quot;&gt;git-add[1]&lt;/a&gt; to learn how to operate the &lt;code&gt;--patch&lt;/code&gt; mode." onmousemove="i18n(this)">&Icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&jcy;&tcy;&iecy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&ycy; &icy;&zcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &mcy;&iecy;&zhcy;&dcy;&ucy; HEAD &icy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ocy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&tcy;&softcy;. &Zcy;&acy;&pcy;&icy;&scy;&softcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy; &pcy;&ocy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&acy; &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &chcy;&tcy;&ocy; &iecy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&iecy;&tcy; &scy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;&mcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &vcy;&acy;&shcy;&iecy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &acy; &iecy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&lcy;&icy; &vcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;. &Vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&tcy;&kcy;&acy;&tcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &vcy;&acy;&shcy;&iecy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;. &Scy;&mcy;. &rcy;&acy;&zcy;&dcy;&iecy;&lcy; &laquo;&Icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy;&raquo;  <a href="git-add.html">git-add[1]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;  <code>--patch</code> .</span></p> <p><span data-i18n="958eac949f1f52a9ebd87568a2eb5a7db26a5e2c56a8caf0cbbfa0061ffee0e0/28" data-source="The &lt;code&gt;--patch&lt;/code&gt; option implies &lt;code&gt;--keep-index&lt;/code&gt;. You can use &lt;code&gt;--no-keep-index&lt;/code&gt; to override this." onmousemove="i18n(this)">&Vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;  <code>--patch</code>  &pcy;&ocy;&dcy;&rcy;&acy;&zcy;&ucy;&mcy;&iecy;&vcy;&acy;&iecy;&tcy;  <code>--keep-index</code> . &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>--no-keep-index</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy;.</span></p> </dd> <dt id="Documentation/git-stash.txt--S"><span data-i18n="eab6b8b065131cab9718da4fc7c26d8f7c9e7c1e327a603e6f37aef921750a3d/e6" data-source="-S" onmousemove="i18n(this)">-S</span></dt> <dt id="Documentation/git-stash.txt---staged"><span data-i18n="f7bda2e98d98313ac738d6479b4703a5b4a4da0a13913468e6450b50c8c97cad/4a" data-source="--staged" onmousemove="i18n(this)">--staged</span></dt> <dd> <p><span data-i18n="84f8650c96737b4e2919760fb7134e58cedb5a2a04faa49117b475fdbaaa2f17/ba" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;save&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>push</code>  &icy;  <code>save</code> .</span></p> <p><span data-i18n="99e7c3b36cc3489575e7e96e3d9bfca13f582eeb43ae1b8a057ad6b5425a5699/86" data-source="Stash only the changes that are currently staged. This is similar to basic &lt;code&gt;git commit&lt;/code&gt; except the state is committed to the stash instead of current branch." onmousemove="i18n(this)">&Scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&jcy;&tcy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&khcy;&ocy;&zhcy;&iecy; &ncy;&acy; &bcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy;  <code>git commit</code> , &zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &fcy;&icy;&kcy;&scy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&iecy;, &acy; &ncy;&iecy; &vcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&iecy;.</span></p> <p><span data-i18n="8147f3f7475c9c1d81a8aa1af3054bbd4d2997f468e583537d600bf572d3e149/44" data-source="The &lt;code&gt;--patch&lt;/code&gt; option has priority over this one." onmousemove="i18n(this)">&Ocy;&pcy;&tscy;&icy;&yacy;  <code>--patch</code>  &icy;&mcy;&iecy;&iecy;&tcy; &pcy;&rcy;&icy;&ocy;&rcy;&icy;&tcy;&iecy;&tcy; &ncy;&acy;&dcy; &ecy;&tcy;&ocy;&jcy;.</span></p> </dd> <dt id="Documentation/git-stash.txt---pathspec-from-fileltfilegt"><span data-i18n="da8857eb3d44efb4cdb38781f7cc2d2dd9074dc3c2a6ca51bd424135fedabfd0/18" data-source="--pathspec-from-file=&amp;lt;file&amp;gt;" onmousemove="i18n(this)">--pathspec-from-file=&lt;file&gt;</span></dt> <dd> <p><span data-i18n="8e38f5819fdd1482d3524da406ee0551cf426269beb8bd18bc9ee373ebc3ded8/37" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; command." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>push</code> .</span></p> <p><span data-i18n="edbea5c504ccb9748dfc5d09bca08d1600446d3e324d8503642ae08801e92fce/7b" data-source="Pathspec is passed in &lt;code&gt;&amp;lt;file&amp;gt;&lt;/code&gt; instead of commandline args. If &lt;code&gt;&amp;lt;file&amp;gt;&lt;/code&gt; is exactly &lt;code&gt;-&lt;/code&gt; then standard input is used. Pathspec elements are separated by LF or CR/LF. Pathspec elements can be quoted as explained for the configuration variable &lt;code&gt;core.quotePath&lt;/code&gt; (see &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;). See also &lt;code&gt;--pathspec-file-nul&lt;/code&gt; and global &lt;code&gt;--literal-pathspecs&lt;/code&gt;." onmousemove="i18n(this)">&Scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy; &pcy;&ucy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;  <code>&lt;file&gt;</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;. &IEcy;&scy;&lcy;&icy;  <code>&lt;file&gt;</code>  &mdash; &ecy;&tcy;&ocy; &tcy;&ocy;&chcy;&ncy;&ocy;  <code>-</code> , &tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy;. &Ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; Pathspec &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; LF &icy;&lcy;&icy; CR/LF. &Ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; Pathspec &mcy;&ocy;&zhcy;&ncy;&ocy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;, &kcy;&acy;&kcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.quotePath</code>  (&scy;&mcy;.  <a href="git-config.html">git-config[1]</a> ). &Scy;&mcy;. &tcy;&acy;&kcy;&zhcy;&iecy;  <code>--pathspec-file-nul</code>  &icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy;  <code>--literal-pathspecs</code> .</span></p> </dd> <dt id="Documentation/git-stash.txt---pathspec-file-nul"><span data-i18n="425e5942f80034f1f089327693cf66158c953fde8f89bae24b0fbc651b9af0e9/1a" data-source="--pathspec-file-nul" onmousemove="i18n(this)">--pathspec-file-nul</span></dt> <dd> <p><span data-i18n="8e38f5819fdd1482d3524da406ee0551cf426269beb8bd18bc9ee373ebc3ded8/37" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; command." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>push</code> .</span></p> <p><span data-i18n="7e27df84b5773075cf108a34f1dc37f2f6a47f96c09842b70ed9d300ad32e7c1/c3" data-source="Only meaningful with &lt;code&gt;--pathspec-from-file&lt;/code&gt;. Pathspec elements are separated with NUL character and all other characters are taken literally (including newlines and quotes)." onmousemove="i18n(this)">&Icy;&mcy;&iecy;&iecy;&tcy; &scy;&mcy;&ycy;&scy;&lcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;  <code>--pathspec-from-file</code> . &Ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; Pathspec &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ocy;&mcy; NUL, &acy; &vcy;&scy;&iecy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; &vcy;&ocy;&scy;&pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&tcy;&scy;&yacy; &bcy;&ucy;&kcy;&vcy;&acy;&lcy;&softcy;&ncy;&ocy; (&vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &icy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;).</span></p> </dd> <dt id="Documentation/git-stash.txt--q"><span data-i18n="5ce681666a15a41274346f65b8bcbf56f8e8170ac00706a44a09ee4d786a8609/cd" data-source="-q" onmousemove="i18n(this)">-q</span></dt> <dt id="Documentation/git-stash.txt---quiet"><span data-i18n="b00818cdc507640687732769ee1cb501db377927ee76d03df23978bd0d706888/e2" data-source="--quiet" onmousemove="i18n(this)">--quiet</span></dt> <dd> <p><span data-i18n="d8cd78e32eb1434950f1023de2659ffb8cc316b9e40ec27fabe903993426cdb3/5d" data-source="This option is only valid for &lt;code&gt;apply&lt;/code&gt;, &lt;code&gt;drop&lt;/code&gt;, &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;save&lt;/code&gt;, &lt;code&gt;store&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>apply</code> ,  <code>drop</code> ,  <code>pop</code> ,  <code>push</code> ,  <code>save</code> ,  <code>store</code> .</span></p> <p><span data-i18n="d413d5cead88768e48ffaf7616182de1407177487333584c59b3d3c98cadc8e7/e2" data-source="Quiet, suppress feedback messages." onmousemove="i18n(this)">&Tcy;&icy;&khcy;&ocy;, &pcy;&ocy;&dcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;&jcy; &scy;&vcy;&yacy;&zcy;&icy;.</span></p> </dd> <dt id="Documentation/git-stash.txt---"><span data-i18n="d8156bae0c4243d3742fc4e9774d8aceabe0410249d720c855f98afc88ff846c/71" data-source="--" onmousemove="i18n(this)">--</span></dt> <dd> <p><span data-i18n="8e38f5819fdd1482d3524da406ee0551cf426269beb8bd18bc9ee373ebc3ded8/37" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; command." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>push</code> .</span></p> <p><span data-i18n="c844657cd58f47918c6eb0fdb4ac9488576c8ffca70a7ecb266a748e1f09ff05/da" data-source="Separates pathspec from options for disambiguation purposes." onmousemove="i18n(this)">&Ocy;&tcy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy; &pcy;&ucy;&tcy;&icy; &ocy;&tcy; &ocy;&pcy;&tscy;&icy;&jcy; &vcy; &tscy;&iecy;&lcy;&yacy;&khcy; &ucy;&scy;&tcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy;&ocy;&dcy;&ncy;&ocy;&zcy;&ncy;&acy;&chcy;&ncy;&ocy;&scy;&tcy;&icy;.</span></p> </dd> <dt id="Documentation/git-stash.txt-ltpathspecgt82308203"><span data-i18n="5c5493d0791d7f222f3401382dbca513ccb6d257ea0ecc4d926b47bd7c332f5f/89" data-source="&amp;lt;pathspec&amp;gt;&amp;hellip;" onmousemove="i18n(this)">&lt;pathspec&gt;&hellip;</span></dt> <dd> <p><span data-i18n="8e38f5819fdd1482d3524da406ee0551cf426269beb8bd18bc9ee373ebc3ded8/37" data-source="This option is only valid for &lt;code&gt;push&lt;/code&gt; command." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>push</code> .</span></p> <p><span data-i18n="91e9d650bce0ba748bbfe643760368c9f3c1bd47e3f3c68b6ae6408cb6451640/c1" data-source="The new stash entry records the modified states only for the files that match the pathspec. The index entries and working tree files are then rolled back to the state in HEAD only for these files, too, leaving files that do not match the pathspec intact." onmousemove="i18n(this)">&Ncy;&ocy;&vcy;&acy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &vcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &pcy;&ucy;&tcy;&icy;. &Zcy;&acy;&pcy;&icy;&scy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &icy; &fcy;&acy;&jcy;&lcy;&ycy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &zcy;&acy;&tcy;&iecy;&mcy; &tcy;&acy;&kcy;&zhcy;&iecy; &ocy;&tcy;&kcy;&acy;&tcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &dcy;&ocy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &vcy; HEAD &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yacy; &fcy;&acy;&jcy;&lcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &pcy;&ucy;&tcy;&icy;, &ncy;&iecy;&tcy;&rcy;&ocy;&ncy;&ucy;&tcy;&ycy;&mcy;&icy;.</span></p> <p><span data-i18n="650607ea17f595aebbbfe78f73f3a97d6140cbf9f4b2d78e76db3388abadf879/ee" data-source="For more details, see the &lt;code&gt;pathspec&lt;/code&gt; entry in &lt;a href=&quot;gitglossary&quot;&gt;gitglossary[7]&lt;/a&gt;." onmousemove="i18n(this)">&Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy; &scy;&mcy;. &vcy; &zcy;&acy;&pcy;&icy;&scy;&icy;  <code>pathspec</code>  &vcy;  <a href="gitglossary.html">gitglossary[7]</a> .</span></p> </dd> <dt id="Documentation/git-stash.txt-ltstashgt"><span data-i18n="9f22ef738030ff1e5fef23d412ec89f5bc0df975b48843cb1a880a53466b8474/b5" data-source="&amp;lt;stash&amp;gt;" onmousemove="i18n(this)">&lt;stash&gt;</span></dt> <dd> <p><span data-i18n="9d01394500d2c81a51ad48cdf02212cac84987dddfdf3d1df59f115ac34164d8/4e" data-source="This option is only valid for &lt;code&gt;apply&lt;/code&gt;, &lt;code&gt;branch&lt;/code&gt;, &lt;code&gt;drop&lt;/code&gt;, &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;show&lt;/code&gt; commands." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>apply</code> ,  <code>branch</code> ,  <code>drop</code> ,  <code>pop</code> ,  <code>show</code> .</span></p> <p><span data-i18n="1e5b01cc28514ab2fd818608ea79dadd968d6cacad7f2198af217ad2117af222/d3" data-source="A reference of the form &lt;code&gt;stash@{&amp;lt;revision&amp;gt;}&lt;/code&gt;. When no &lt;code&gt;&amp;lt;stash&amp;gt;&lt;/code&gt; is given, the latest stash is assumed (that is, &lt;code&gt;stash@{0}&lt;/code&gt;)." onmousemove="i18n(this)">&Scy;&scy;&ycy;&lcy;&kcy;&acy; &vcy;&icy;&dcy;&acy;  <code>stash@{&lt;revision&gt;}</code> . &IEcy;&scy;&lcy;&icy;  <code>&lt;stash&gt;</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;, &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&acy;&mcy;&ycy;&jcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy; (&tcy;&ocy; &iecy;&scy;&tcy;&softcy;  <code>stash@{0}</code>  ).</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_discussion"><span data-i18n="5eb6cf647d2c5d14a044e2d103dcef4cf0cdc872434c374debc1043092bc4746/dd" data-source="Discussion" onmousemove="i18n(this)">Discussion</span></h2> <div> <p><span data-i18n="1a15fbe99938cb810fac0e76b4c71c504961370ec3ff3fe5f33074c76da4433b/1b" data-source="A stash entry is represented as a commit whose tree records the state of the working directory, and its first parent is the commit at &lt;code&gt;HEAD&lt;/code&gt; when the entry was created. The tree of the second parent records the state of the index when the entry is made, and it is made a child of the &lt;code&gt;HEAD&lt;/code&gt; commit. The ancestry graph looks like this:" onmousemove="i18n(this)">&Zcy;&acy;&pcy;&icy;&scy;&softcy; &vcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&iecy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&kcy;&acy;&kcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;, &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;, &acy; &iecy;&iecy; &pcy;&iecy;&rcy;&vcy;&ycy;&mcy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&iecy;&mcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy; &pcy;&ocy; &acy;&dcy;&rcy;&iecy;&scy;&ucy;  <code>HEAD</code> , &kcy;&ocy;&gcy;&dcy;&acy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &bcy;&ycy;&lcy;&acy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&acy;. &Dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &vcy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &pcy;&rcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&icy; &zcy;&acy;&pcy;&icy;&scy;&icy; &icy; &scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&scy;&yacy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&mcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ocy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;  <code>HEAD</code> . &Gcy;&rcy;&acy;&fcy; &pcy;&rcy;&iecy;&dcy;&kcy;&ocy;&vcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&icy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-lua">       .<span class="hljs-comment">----W</span>
      /    /
<span class="hljs-comment">-----H----I</span></pre> </div> </div> <p><span data-i18n="c279076201615bbd79fadf5f0bdb361be313516e07161f227685e9e2d9836de2/89" data-source="where &lt;code&gt;H&lt;/code&gt; is the &lt;code&gt;HEAD&lt;/code&gt; commit, &lt;code&gt;I&lt;/code&gt; is a commit that records the state of the index, and &lt;code&gt;W&lt;/code&gt; is a commit that records the state of the working tree." onmousemove="i18n(this)">&gcy;&dcy;&iecy;  <code>H</code>  &mdash; &ecy;&tcy;&ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;  <code>HEAD</code> ,  <code>I</code>  &mdash; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;, &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&acy;&yacy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &acy;  <code>W</code>  &mdash; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;, &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&acy;&yacy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <div> <dl> <dt id="Documentation/git-stash.txt-Pullingintoadirtytree"><span data-i18n="7f3a2b691c7fdf1d99b78282d25bbb223da32c267cd9cc41321ca60efb688b84/dc" data-source="Pulling into a dirty tree" onmousemove="i18n(this)">&Vcy;&hardcy;&iecy;&zcy;&zhcy;&acy;&yacy; &vcy; &gcy;&rcy;&yacy;&zcy;&ncy;&ocy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;</span></dt> <dd> <p><span data-i18n="8b303cf24bbb9da206198660790353be086051143a982afd4e6d053885d010ff/51" data-source="When you are in the middle of something, you learn that there are upstream changes that are possibly relevant to what you are doing. When your local changes do not conflict with the changes in the upstream, a simple &lt;code&gt;git pull&lt;/code&gt; will let you move forward." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&iecy;&scy;&softcy; &vcy; &scy;&iecy;&rcy;&iecy;&dcy;&icy;&ncy;&iecy; &chcy;&iecy;&gcy;&ocy;-&tcy;&ocy;, &vcy;&ycy; &ucy;&zcy;&ncy;&acy;&iecy;&tcy;&iecy;, &chcy;&tcy;&ocy; &iecy;&scy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &icy;&mcy;&iecy;&yucy;&tcy; &ocy;&tcy;&ncy;&ocy;&shcy;&iecy;&ncy;&icy;&iecy; &kcy; &tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy; &vcy;&ycy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy;&iecy;. &IEcy;&scy;&lcy;&icy; &vcy;&acy;&shcy;&icy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ucy;&yucy;&tcy; &scy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;&mcy;&icy; &vcy; &vcy;&ocy;&scy;&khcy;&ocy;&dcy;&yacy;&shchcy;&iecy;&mcy; &ncy;&acy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&icy;, &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&jcy;  <code>git pull</code>  &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&icy;&tcy; &vcy;&acy;&mcy; &dcy;&vcy;&icy;&gcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy;&pcy;&iecy;&rcy;&iecy;&dcy;.</span></p> <p><span data-i18n="f01ab4a0a20ef06d33e4d87bcd818ae7cc63182d6f9e34b622acd5df4276ee3e/28" data-source="However, there are cases in which your local changes do conflict with the upstream changes, and &lt;code&gt;git pull&lt;/code&gt; refuses to overwrite your changes. In such a case, you can stash your changes away, perform a pull, and then unstash, like this:" onmousemove="i18n(this)">&Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &bcy;&ycy;&vcy;&acy;&yucy;&tcy; &scy;&lcy;&ucy;&chcy;&acy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&acy;&shcy;&icy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ucy;&yucy;&tcy; &scy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;&mcy;&icy; &vcy;&ycy;&shcy;&iecy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy;, &icy;  <code>git pull</code>  &ocy;&tcy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&tcy;&softcy; &vcy;&acy;&shcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;. &Vcy; &tcy;&acy;&kcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &rcy;&acy;&zcy;&acy;&rcy;&khcy;&icy;&vcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &vcy;&ocy;&tcy; &tcy;&acy;&kcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-variable">$ </span>git pull
 ...
file foobar <span class="hljs-keyword">not</span> up to date, cannot merge.
<span class="hljs-variable">$ </span>git stash
<span class="hljs-variable">$ </span>git pull
<span class="hljs-variable">$ </span>git stash pop</pre> </div> </div> </dd> <dt id="Documentation/git-stash.txt-Interruptedworkflow"><span data-i18n="0ad33717a4543d8435e7cb38c7bdc618f37c8c909b71c6aca6d10bb91ef31863/22" data-source="Interrupted workflow" onmousemove="i18n(this)">Interrupted workflow</span></dt> <dd> <p><span data-i18n="0959d73e616c1b42d86241c6db70847934373d458a8231faef8503504ac3b726/83" data-source="When you are in the middle of something, your boss comes in and demands that you fix something immediately. Traditionally, you would make a commit to a temporary branch to store your changes away, and return to your original branch to make the emergency fix, like this:" onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &chcy;&iecy;&mcy;-&tcy;&ocy; &zcy;&acy;&ncy;&yacy;&tcy;&ycy;, &pcy;&rcy;&icy;&khcy;&ocy;&dcy;&icy;&tcy; &ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&icy;&kcy; &icy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy; &ncy;&iecy;&mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&ocy; &chcy;&tcy;&ocy;-&tcy;&ocy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&icy;&lcy;&icy;. &Tcy;&rcy;&acy;&dcy;&icy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy; &vcy;&ycy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &icy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy;&iecy;&scy;&softcy; &vcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ncy;&iecy;&scy;&tcy;&icy; &ecy;&kcy;&scy;&tcy;&rcy;&iecy;&ncy;&ncy;&ocy;&iecy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-comment"># ... hack hack hack ...</span>
<span class="hljs-variable">$ </span>git switch -c my_wip
<span class="hljs-variable">$ </span>git commit -a -m <span class="hljs-string">&quot;WIP&quot;</span>
<span class="hljs-variable">$ </span>git switch master
<span class="hljs-variable">$ </span>edit emergency fix
<span class="hljs-variable">$ </span>git commit -a -m <span class="hljs-string">&quot;Fix in a hurry&quot;</span>
<span class="hljs-variable">$ </span>git switch my_wip
<span class="hljs-variable">$ </span>git reset --soft <span class="hljs-variable constant_">HEAD</span>^
<span class="hljs-comment"># ... continue hacking ...</span></pre> </div> </div> <p><span data-i18n="94a6c53b1f1b3457fe9bb09d6efad27c7bf4efe2bca384902eb1c95cf4590cb2/09" data-source="You can use &lt;code&gt;git stash&lt;/code&gt; to simplify the above, like this:" onmousemove="i18n(this)">&Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>git stash</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&pcy;&rcy;&ocy;&scy;&tcy;&icy;&tcy;&softcy; &vcy;&ycy;&shcy;&iecy;&icy;&zcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ocy;&iecy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-comment"># ... hack hack hack ...</span>
<span class="hljs-variable">$ </span>git stash
<span class="hljs-variable">$ </span>edit emergency fix
<span class="hljs-variable">$ </span>git commit -a -m <span class="hljs-string">&quot;Fix in a hurry&quot;</span>
<span class="hljs-variable">$ </span>git stash pop
<span class="hljs-comment" title="# ... continue hacking ..."># ...&pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&acy;&iecy;&mcy; &vcy;&zcy;&lcy;&ocy;&mcy;...</span></pre> </div> </div> </dd> <dt id="Documentation/git-stash.txt-Testingpartialcommits"><span data-i18n="70a4dcec3d673f1cf6323ba8ab7baca487dcc0e8da04567287cd6183f68ff4e2/66" data-source="Testing partial commits" onmousemove="i18n(this)">&Tcy;&iecy;&scy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &chcy;&acy;&scy;&tcy;&icy;&chcy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;</span></dt> <dd> <p><span data-i18n="115809285289d397406392a6991077314b79f5f80b045ed3319122cace82dc5d/3c" data-source="You can use &lt;code&gt;git stash push --keep-index&lt;/code&gt; when you want to make two or more commits out of the changes in the work tree, and you want to test each change before committing:" onmousemove="i18n(this)">&Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>git stash push --keep-index</code> , &iecy;&scy;&lcy;&icy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &dcy;&vcy;&iecy; &icy;&lcy;&icy; &bcy;&ocy;&lcy;&iecy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &icy; &pcy;&rcy;&ocy;&tcy;&iecy;&scy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&zhcy;&dcy;&ocy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&iecy;&jcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-comment"># ... hack hack hack ...</span>
<span class="hljs-variable">$ </span>git add --patch foo            <span class="hljs-comment" title="# add just first part to the index"># &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &chcy;&acy;&scy;&tcy;&softcy;</span>
<span class="hljs-variable">$ </span>git stash push --keep-index    <span class="hljs-comment" title="# save all other changes to the stash"># &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&mcy; &vcy;&scy;&iecy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&iecy;</span>
<span class="hljs-variable">$ </span>edit/build/test first part
<span class="hljs-variable">$ </span>git commit -m <span class="hljs-string">&apos;First part&apos;</span>     <span class="hljs-comment" title="# commit fully tested change"># &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &pcy;&rcy;&ocy;&tcy;&iecy;&scy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy;</span>
<span class="hljs-variable">$ </span>git stash pop                  <span class="hljs-comment" title="# prepare to work on all other changes"># &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&softcy;&tcy;&iecy;&scy;&softcy; &kcy; &rcy;&acy;&bcy;&ocy;&tcy;&iecy; &ncy;&acy;&dcy; &vcy;&scy;&iecy;&mcy;&icy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&mcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;&mcy;&icy;</span>
<span class="hljs-comment" title="# ... repeat above five steps until one commit remains ..."># ... &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&yacy;&jcy;&tcy;&iecy; &vcy;&ycy;&shcy;&iecy;&ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&yacy;&tcy;&softcy; &shcy;&acy;&gcy;&ocy;&vcy;, &pcy;&ocy;&kcy;&acy; &ncy;&iecy; &ocy;&scy;&tcy;&acy;&ncy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&icy;&ncy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;...</span>
<span class="hljs-variable">$ </span>edit/build/test remaining parts
<span class="hljs-variable">$ </span>git commit foo -m <span class="hljs-string">&apos;Remaining parts&apos;</span></pre> </div> </div> </dd> <dt id="Documentation/git-stash.txt-Savingunrelatedchangesforfutureuse"><span data-i18n="69b107f8c01cb0ebfbb125b761f1bb33d2907ae087d187382d436f081a55907c/60" data-source="Saving unrelated changes for future use" onmousemove="i18n(this)">&Scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy;&scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy;.</span></dt> <dd> <p><span data-i18n="e0e9fb35a4b589d71c8eb73c7117146fec843118068fe13879dded19fd350357/24" data-source="When you are in the middle of massive changes and you find some unrelated issue that you don&amp;rsquo;t want to forget to fix, you can do the change(s), stage them, and use &lt;code&gt;git stash push --staged&lt;/code&gt; to stash them out for future use. This is similar to committing the staged changes, only the commit ends-up being in the stash and not on the current branch." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&iecy;&scy;&softcy; &vcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&iecy; &mcy;&acy;&scy;&shcy;&tcy;&acy;&bcy;&ncy;&ycy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &icy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;&iecy; &kcy;&acy;&kcy;&ucy;&yucy;-&tcy;&ocy; &ncy;&iecy;&scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ucy;&yucy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ucy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &ncy;&iecy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &zcy;&acy;&bcy;&ycy;&tcy;&softcy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ncy;&iecy;&scy;&tcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&icy;&tcy;&softcy; &icy;&khcy; &icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>git stash push --staged</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&pcy;&rcy;&yacy;&tcy;&acy;&tcy;&softcy; &icy;&khcy; &dcy;&lcy;&yacy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&khcy;&ocy;&zhcy;&iecy; &ncy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy; &pcy;&ocy;&ecy;&tcy;&acy;&pcy;&ncy;&ycy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;, &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy; &ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&iecy;, &acy; &ncy;&iecy; &vcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&iecy;.</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-comment" title="# ... hack hack hack ..."># ... &khcy;&acy;&kcy; &khcy;&acy;&kcy; &khcy;&acy;&kcy; ...</span>
<span class="hljs-variable">$ </span>git add --patch foo           <span class="hljs-comment" title="# add unrelated changes to the index">#&dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy; &ncy;&iecy;&scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;</span>
<span class="hljs-variable">$ </span>git stash push --staged       <span class="hljs-comment" title="# save these changes to the stash"># &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&mcy; &ecy;&tcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;</span>
<span class="hljs-comment" title="# ... hack hack hack, finish current changes ..."># ... hack hack hack, &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy;&softcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;...</span>
<span class="hljs-variable">$ </span>git commit -m <span class="hljs-string">&apos;Massive&apos;</span>       <span class="hljs-comment" title="# commit fully tested changes"># &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &pcy;&rcy;&ocy;&tcy;&iecy;&scy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;</span>
<span class="hljs-variable">$ </span>git switch fixup-branch       <span class="hljs-comment" title="# switch to another branch"># &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy;&scy;&yacy; &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy;</span>
<span class="hljs-variable">$ </span>git stash pop                 <span class="hljs-comment" title="# to finish work on the saved changes"># &dcy;&lcy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy; &ncy;&acy;&dcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;&mcy;&icy;</span></pre> </div> </div> </dd> <dt id="Documentation/git-stash.txt-Recoveringstashentriesthatwerecleareddroppederroneously"><span data-i18n="b97bb2210a846a5ef4029582777230db2db588e9d02397200fb7c7656041863e/31" data-source="Recovering stash entries that were cleared/dropped erroneously" onmousemove="i18n(this)">&Vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ycy;&lcy;&icy; &ocy;&chcy;&icy;&shchcy;&iecy;&ncy;&ycy;/&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy; &pcy;&ocy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;</span></dt> <dd> <p><span data-i18n="fb03e99a797d18b2ffb0deeb7a1f5c52aeea675be94afacd0ad313aae8a0dc2d/8e" data-source="If you mistakenly drop or clear stash entries, they cannot be recovered through the normal safety mechanisms. However, you can try the following incantation to get a list of stash entries that are still in your repository, but not reachable any more:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &pcy;&ocy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &icy;&lcy;&icy; &ocy;&chcy;&icy;&scy;&tcy;&icy;&tcy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;, &icy;&khcy; &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&khcy; &mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;&ocy;&vcy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy;&scy;&tcy;&icy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&ocy;&pcy;&rcy;&ocy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &zcy;&acy;&kcy;&lcy;&icy;&ncy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&scy;&iecy; &iecy;&shchcy;&iecy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &vcy; &vcy;&acy;&shcy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &ncy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &ncy;&iecy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;:</span></p> <div> <div> <pre class="hljs language-perl">git fsck --unreachable |
<span class="hljs-keyword">grep</span> commit | cut -d\  -f3 |
xargs git <span class="hljs-keyword">log</span> --merges --<span class="hljs-keyword">no</span>-walk --<span class="hljs-keyword">grep</span>=WIP</pre> </div> </div> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_configuration"><span data-i18n="b332c3492d5eb10a118eb6d8b0dcd689bc2477ce2ae16b303753b942b54377bc/aa" data-source="Configuration" onmousemove="i18n(this)">Configuration</span></h2> <div> <p><span data-i18n="5b8d919fa35b75aa925ebd5414ed6373e762fb0a087a062961c27b2ce9586555/57" data-source="Everything below this line in this section is selectively included from the &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt; documentation. The content is the same as what&amp;rsquo;s found there:" onmousemove="i18n(this)">&Vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&icy;&zhcy;&iecy; &ecy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;, &vcy;&ycy;&bcy;&ocy;&rcy;&ocy;&chcy;&ncy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &icy;&zcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy;  <a href="git-config.html">git-config[1]</a> . &Scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&ncy;&icy;&iecy; &tcy;&acy;&kcy;&ocy;&iecy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ocy;&iecy; &tcy;&acy;&mcy;:</span></p> <div> <dl> <dt id="Documentation/git-stash.txt-stashshowIncludeUntracked"><span data-i18n="b2061f6450e7a099b8fcfca584069dbbcca022343adc3a3793430c7eb5fd9b90/fe" data-source="stash.showIncludeUntracked" onmousemove="i18n(this)">stash.showIncludeUntracked</span></dt> <dd> <p><span data-i18n="fe89439a930a2665f45bf09d39f0cd09c712f3b016a06849103368f555d5fba7/96" data-source="If this is set to true, the &lt;code&gt;git stash show&lt;/code&gt; command will show the untracked files of a stash entry. Defaults to false. See the description of the &lt;code&gt;show&lt;/code&gt; command in &lt;a href=&quot;git-stash&quot;&gt;git-stash[1]&lt;/a&gt;." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true, &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git stash show</code>  &pcy;&ocy;&kcy;&acy;&zhcy;&iecy;&tcy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &lcy;&ocy;&zhcy;&softcy;. &Scy;&mcy;. &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>show</code>  &vcy;  <a href="git-stash.html">git-stash[1]</a> .</span></p> </dd> <dt id="Documentation/git-stash.txt-stashshowPatch"><span data-i18n="4c183445ffdd92b101b45357439aafcc6ceb6ea1199acbb3be1291b5a7c9f9d8/13" data-source="stash.showPatch" onmousemove="i18n(this)">stash.showPatch</span></dt> <dd> <p><span data-i18n="92db457555f49204486bc0c8369fb080e158786bd66ed48dd543737359b4053a/d3" data-source="If this is set to true, the &lt;code&gt;git stash show&lt;/code&gt; command without an option will show the stash entry in patch form. Defaults to false. See the description of the &lt;code&gt;show&lt;/code&gt; command in &lt;a href=&quot;git-stash&quot;&gt;git-stash[1]&lt;/a&gt;." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true, &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git stash show</code>  &bcy;&iecy;&zcy; &ocy;&pcy;&tscy;&icy;&icy; &pcy;&ocy;&kcy;&acy;&zhcy;&iecy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy; &vcy; &fcy;&ocy;&rcy;&mcy;&iecy; &pcy;&acy;&tcy;&chcy;&acy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &lcy;&ocy;&zhcy;&softcy;. &Scy;&mcy;. &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>show</code>  &vcy;  <a href="git-stash.html">git-stash[1]</a> .</span></p> </dd> <dt id="Documentation/git-stash.txt-stashshowStat"><span data-i18n="2ca089619c5c8bf33b23d16c9fa3cbdbe6ddd16e88369e9bd040a2dd6ab45616/8e" data-source="stash.showStat" onmousemove="i18n(this)">stash.showStat</span></dt> <dd> <p><span data-i18n="7e5045cf105164e7a579e0544458b1eb865e4437c3f70c37b034e13182c1b710/3c" data-source="If this is set to true, the &lt;code&gt;git stash show&lt;/code&gt; command without an option will show a diffstat of the stash entry. Defaults to true. See the description of the &lt;code&gt;show&lt;/code&gt; command in &lt;a href=&quot;git-stash&quot;&gt;git-stash[1]&lt;/a&gt;." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true, &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git stash show</code>  &bcy;&iecy;&zcy; &ocy;&pcy;&tscy;&icy;&icy; &pcy;&ocy;&kcy;&acy;&zhcy;&iecy;&tcy; diffstat &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&acy;&jcy;&ncy;&icy;&kcy;&acy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&tcy;&icy;&ncy;&ncy;&ocy;. &Scy;&mcy;. &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>show</code>  &vcy;  <a href="git-stash.html">git-stash[1]</a> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p><span data-i18n="feb9db5efa02727241d4fcf7a484198df30e8d76fd310c8cbe2226026b8d7571/9a" data-source="&lt;a href=&quot;git-checkout&quot;&gt;git-checkout[1]&lt;/a&gt;, &lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt;, &lt;a href=&quot;git-reflog&quot;&gt;git-reflog[1]&lt;/a&gt;, &lt;a href=&quot;git-reset&quot;&gt;git-reset[1]&lt;/a&gt;, &lt;a href=&quot;git-switch&quot;&gt;git-switch[1]&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-checkout.html">git-checkout[1]</a> ,  <a href="git-commit.html">git-commit[1]</a> ,  <a href="git-reflog.html">git-reflog[1]</a> ,  <a href="git-reset.html">git-reset[1]</a> ,  <a href="git-switch.html">git-switch[1]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-stash">https://git-scm.com/docs/git-stash</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-status.html">
                            git status                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-stripspace.html">
                            git stripspace                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-submodule.html">
                            git submodule                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-svn.html">
                            git svn                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-switch.html">
                            git switch                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-symbolic-ref.html">
                            git symbolic-ref                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-tag.html">
                            git tag                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block; text-align:center;"
        data-ad-layout="in-article"
        data-ad-format="fluid"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="3777011170"></ins>
<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-stash.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>